import { $get, $put } from '@js/request'
import { SeriesSchema } from '@src/components/schema/seriesCase'

// 获取系列案详情
export async function getSeriesRequest (id: string): Promise<SeriesSchema> {
  const res = await $get(`/api/commission/caseserie/${id}`)
  return res.data
}

// 删除案件
export async function delCaseRequest (cases: string[], id: string): Promise<void> {
  const res = await $put(`/api/commission/caseserie/remove_case/${id}`, {
    caseids: cases.join()
  })
  return res.data
}
